{% extends "layout.html" %}

{% block content %}
    <div class="form">
  <h2>Sign up</h2>

  {% for message in form.firstname.errors %}
    <div class="alert alert-error">{{ message }}</div>
  {% endfor %}

  {% for message in form.lastname.errors %}
    <div class="alert alert-error">{{ message }}</div>
  {% endfor %}

  {% for message in form.email.errors %}
    <div class="alert alert-error">{{ message }}</div>
  {% endfor %}

  {% for message in form.password.errors %}
    <div class="alert alert-error">{{ message }}</div>
  {% endfor %}

  <form action="{{ url_for('person.signup') }}" method=post>
    {{ form.hidden_tag() }}

    {{ form.firstname.label }}
    {{ form.firstname }}

    {{ form.lastname.label }}
    {{ form.lastname }}

    {{ form.email.label }}
    {{ form.email }}

    {{ form.password.label }}
    {{ form.password }}

    <p><input id="submit" name="submit" type="submit" class="btn btn-inverse" value="Create account"></p>
  </form>
</div>
{% endblock %}
